﻿//===================================================================================
// Copyright (c) Ryan Garrett.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===================================================================================
using System;

namespace Caffeine.Core
{
    /// <summary>
    /// Represents all possible relationships a child model can have with its
    /// parent model
    /// </summary>
    [Flags]
    public enum ModelStates
    {
        /// <summary>
        /// The model has been committed to its parent
        /// </summary>
        Committed = 1,

        /// <summary>
        /// The model has been removed from its parent
        /// </summary>
        Removed = 2,

        /// <summary>
        /// The model has been added to its parent
        /// </summary>
        Added = 4
    }
}
